﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Luna小店.UC.面料库存.面料出库.service;

namespace Luna小店.UC.面料库存.订单领料出库
{
    public partial class Form面料审核提交 : DevExpress.XtraEditors.XtraForm
    {
        private DTO订单出库记录员工 DTO订单出库记录员工 = new DTO订单出库记录员工();
        public Form面料审核提交(DTO订单出库记录员工 DTO订单出库记录员工)
        {
            InitializeComponent();
            this.DTO订单出库记录员工 = DTO订单出库记录员工;
        }

        private void textBox扫码_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyValue == 13)
            {
                this.DTO订单出库记录员工.mnemonic = this.textBox扫码.Text;
                StockOutService.post确认出库记录执行人(this.DTO订单出库记录员工);
                MessageBox.Show("领料出库成功");
                this.Close();
            }
        }
    }
}